package com.lawyer.repository;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import com.lawyer.entity.SystemUser;

@RepositoryRestResource(path = "SystemUser", collectionResourceRel = "SystemUser")
public interface SystemUserRepository extends PagingAndSortingRepository<SystemUser, Long> {
	
	SystemUser findByUsername(String username);
	
	SystemUser findByUsernameAndPassword(String username,String password);

}
